<script>
  import {login} from './utils/login'
  import {url} from './utils/url'
  import ajax from './utils/ajax'
	export default {
    globalData:{
      token:'123token--------------------------------',
      user: {

      }
    },
		onLaunch: async function() {
      let res = await login()
      ajax.createUser({code:res.code})
      // uni.get
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	page {
		background: #f4f2f2;
	}
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
</style>
